<?php

$config = array(
    'menu' => array(
        'nav-top' => array(
            array(
                'title' => __('Home'),
                'url' => array(
                    'controller' => 'pages',
                    'action' => 'display',
                    'home'
                ),
            ),
            array(
                'title' => __('Posts'),
                'class' => 'dropdown',
                'url' => array(
                    'controller' => 'posts',
                    'action' => 'index'
                ),
                'children' => array(
                    array(
                        'title' => __('New Posts'),
                        'url' => array(
                            'controller' => 'posts',
                            'action' => 'add'
                        ),
                        'permissions' => array('members')
                    ),
                    array(
                        'title' => __('Most Views'),
                        'url' => array(
                            'controller' => 'posts',
                            'action' => 'most_views'
                        )
                    ),
                    array(
                        'title' => __('Latests'),
                        'url' => array(
                            'controller' => 'posts',
                            'action' => 'latest'
                        )
                    ),
                )
            ),
            array(
                'title' => __('Login'),
                'url' => array(
                    'controller' => 'users',
                    'action' => 'login'
                ),
                'permissions' => array('')
            ),
            array(
                'title' => __('User'),
//                'url' => array(
//                    'controller' => 'profiles',
//                    'action' => 'view'
//                ),
                'permissions' => array('members'),
                'children' => array(
                    array(
                        'title' => __('Profile'),
                        'url' => array(
                            'controller' => 'profiles',
                            'action' => 'view'
                        )
                    ),
                    array(
                        'title' => __('Change Password'),
                        'url' => array(
                            'controller' => 'profiles',
                            'action' => 'change_password'
                        )
                    ),
                    array(
                        'title' => __('Logout'),
                        'url' => array(
                            'controller' => 'users',
                            'action' => 'logout'
                        )
                    ),
                )
            ),
            array(
                'title' => __('About'),
                'url' => array(
                    'controller' => 'pages',
                    'action' => 'display',
                    'about_us'
                )
            ),
        )
    )
);
